package nio.c1;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;

public class FileChannel {
    public static void main(String[] args) throws IOException {

        Path path1 = Paths.get("data.txt");
        Path path2 = Paths.get("data2.txt");
        Files.copy(path1,path2);

    }
}
